package com.zbkj.service.service;

import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.model.agent.CommunityStat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.request.CommunityStatSaveRequest;
import com.zbkj.common.request.CommunityStatSearchRequest;
import com.zbkj.common.response.*;

import java.util.List;
/**
* @author Caiyc
* @description CommunityStatService 接口
* @date 2025-07-21
*/
public interface CommunityStatService extends IService<CommunityStat> {

    Boolean create(CommunityStatSaveRequest communityStatSaveRequest);

    /**
     * 分页查询小区分红统计表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<CommunityStatPageDataResponse> getList(CommunityStatSearchRequest request, PageParamRequest pageParamRequest);

    /**
    * 修改小区分红统计表
    * @param communityStatRequest
    * @return
    */
    boolean update(CommunityStatSaveRequest communityStatRequest);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    CommunityStatDetailResponse getDetails(Integer id);

    CommunityStatInfoFrontResponse getStatInfo(Integer merId);
    MerchantCommunityStatInfoFrontResponse getStatInfoActual(Integer merId);

    MerchantCommunityStatInfoFrontResponse getMerchantStatInfo(Integer merId);

    void communityBrokerageTask();

    /**
     * 小区分红统计信息
     * @return
     */
    CommunityStatFrontResponse getMyCommunityStat();

    MerchantCommunityStatInfoFrontResponse getCommunityStat(Integer comId);
}